import request from '@/utils/request'

// 查询资产盘点子列表
export function listElecMaterialCheckDetails(query) {
  return request({
    url: '/elec/elecMaterialCheckDetails/list',
    method: 'get',
    params: query
  })
}

// 查询资产盘点子详细
export function getElecMaterialCheckDetails(checkDetailId) {
  return request({
    url: '/elec/elecMaterialCheckDetails/' + checkDetailId,
    method: 'get'
  })
}

// 新增资产盘点子
export function addElecMaterialCheckDetails(data) {
  return request({
    url: '/elec/elecMaterialCheckDetails',
    method: 'post',
    data: data
  })
}

// 修改资产盘点子
export function updateElecMaterialCheckDetails(data) {
  return request({
    url: '/elec/elecMaterialCheckDetails',
    method: 'put',
    data: data
  })
}

// 删除资产盘点子
export function delElecMaterialCheckDetails(checkDetailId) {
  return request({
    url: '/elec/elecMaterialCheckDetails/' + checkDetailId,
    method: 'delete'
  })
}
